#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/10/11 15:02
@desc
"""

print(bool(0))
print(bool(1))
print(bool(2))
print(bool(-1))
print(bool(-2))

print(int(True))
print(int(False))

print("===============================")
'''x or y , x True, 则返回 x'''
print(0 or 2)

'''x and y, x True, 则返回 y'''
print(1 and 2)

print(0 and 2)
print (1 < 3)
print(2 or 1 < 3)
print(2 or True)
print("==================")
print(2 > 1 and 3)

'''=============================='''
print(2 or 1 < 3 and 4)

print ('%%%s' % ('abc'))

lis = [i for i in range(10)]
print(lis)